import { useDetail, useList } from "@/hooks";
import { getUserInfoUrl, getUserTypeValue } from "@/command/apiTool";
import { getAction } from "@/command/netTool";
import * as vant from "vant";
const { showFailToast, showSuccessToast } = vant;
export const useRequest = () => {
  // 最新快讯
  const [newInfoList] = useDetail(
    getUserInfoUrl({
      dh: "",
      xh: "/api/h5/richInspection/small/queryKz",
    }),
    []
  );
  // 申请记录
  const [applicationRecord] = useDetail(
    getUserInfoUrl({
      dh: "",
      xh: "/api/h5/richInspection/small/history",
    }),
    []
  );
  return {
    newInfoList,
    applicationRecord,
  };
};
